<?php 
require '../../../../zb_system/function/c_system_base.php';
require '../../../../zb_system/function/c_system_admin.php';
$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('aymFreeThree')) {$zbp->ShowError(48);die();}
$blogtitle=$zbp->theme.'主题配置->基础设置';
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';
if(isset($_POST['Forum'])){	
if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();
	foreach($_POST['Forum'] as $key=>$val){
	   $zbp->Config('aymFreeThree')->$key = $val;
	}
	$zbp->SaveConfig('aymFreeThree');
	$zbp->ShowHint('good');
}

?>
<div id="divMain" class="muziang">
	<div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu"><?php aymFreeThree_SubMenu(0);?></div>  
	<div id="divMain2">
		<table width="100%" cellspacing='0' cellpadding='0' class="tableBorder">
			<tr height="32">
				<td>
					<p><strong style="color:#F00">温馨提示：</strong>请在插件管理中安装启用<strong style="color:#F00">UEditor编辑器</strong>插件，否则不能使用图片上传，只能输入图片URL地址</p>
				
				</td>
			</tr>
		
		</table>
		<form id="form1" name="form1" method="post">
			<table width="100%" cellspacing='0' cellpadding='0' class="tableBorder">
			<tr>
				<th width='20%'>设置项</th>
				<th width='50%'>内容</th>
				<th width='30%'>描述</th>
			</tr>			
			<tr class="tr">
				<td>
					<label for="logo">
						LOGO上传
					</label>
				</td>
				<td class="show">
					<?php if($zbp->Config('aymFreeThree')->logo){?>
					<img src="<?php echo $zbp->Config('aymFreeThree')->logo;?>"/>
					<?php }?>
					<div class="uploadimg">
						<input name="Forum[logo]" id="logo" type="text" class="text uplod_img" value="<?php echo $zbp->Config('aymFreeThree')->logo;?>" />
						<?php if ($zbp->CheckPlugin('UEditor')) {?>
						<span class="btn">上传Logo</span>
						<?php } ?>
					</div>
				</td>
				<td>
					<p>上传网站LOGO图片，演示站LOGO尺寸190px × 60px</p>
				</td>
			</tr>
			<tr class="tr">
				<td>
					<label for="banner">
						Banner上传
					</label>
				</td>
				<td class="show">
					<?php if($zbp->Config('aymFreeThree')->banner){?>
					<img src="<?php echo $zbp->Config('aymFreeThree')->banner;?>"/>
					<?php }?>
					<div class="uploadimg">
						<input name="Forum[banner]" id="banner" type="text" class="text uplod_img" value="<?php echo $zbp->Config('aymFreeThree')->banner;?>" />
						<?php if ($zbp->CheckPlugin('UEditor')) {?>
						<span class="btn">上传图片</span>
						<?php } ?>
					</div>
				</td>
				<td>
					<p>上传网站banner图片，尺寸1920px × 350px</p>
				</td>
			</tr>
			</table>
			<?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?>
			<div class="clear"></div>
			<div class="submit">
				<input name="" type="Submit" class="button" value="保存"/>
			</div>
		</form>
	</div>
</div>
<?php 
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>